//
//  MineCollectGoodsCollectionCell.m
//  ArtDog
//
//  Created by dllo on 16/9/14.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "MineCollectGoodsCollectionCell.h"
#import "MineCollectGoods.h"
#import "UIImageView+WebCache.h"

@interface MineCollectGoodsCollectionCell ()

@property (weak, nonatomic) IBOutlet UIImageView *imageView;

@property (weak, nonatomic) IBOutlet UILabel *nameLabel;

@property (weak, nonatomic) IBOutlet UILabel *sizeLabel;

@property (weak, nonatomic) IBOutlet UILabel *priceLabel;

@end

@implementation MineCollectGoodsCollectionCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
}

- (void)setGoodsModel:(MineCollectGoods *)goodsModel
{
    _goodsModel = goodsModel;
    [_imageView sd_setImageWithURL:[NSURL URLWithString:goodsModel.pictureUrl] placeholderImage:[UIImage imageNamed:@"placeholder"]];
    _nameLabel.text = goodsModel.goodsName;
    _sizeLabel.text = [goodsModel.goodsSize stringByAppendingString:goodsModel.goodsMaterial];
    _priceLabel.text = [NSString stringWithFormat:@"¥ %@", goodsModel.sellingPrice];
}

@end
